#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void main()
{
	int s = 0;
	int i = 0;
	int cnt = 0;
	int sum = 1;
	for (i = 1; i <=9; i++)
	{
	    
		for (cnt = 1; cnt <= i; cnt++)
		{
			sum = sum * i;
		}
		s = s + sum;
		sum = 1;
	}
	printf("s=%d\n", s);
}